Skip to content

Conversation

oliveror
Copy link
Member

Changes

  • /recipes/<unknown id> rendered only the EmptyState title, an <h3>, so the page had no <h1> (axe: page-has-heading-one).
  • EmptyState takes an optional headingLevel (1–4, default 3, so existing uses are unchanged). The recipe not-found state passes headingLevel={1}.
  • No visual change: .empty-state__title sets its own font size, and base h1/h3 styles are otherwise identical.
  • Documented the prop in apps/web/src/components/ui/README.md; the detail-page test now asserts heading level 1.

Validation

  • npm run check passes (Node 24.21.0, 211 tests).
  • Not-found and core-route E2E tests pass.

Remaining work

AI usage

Written with Claude Code (Anthropic) during the final-delivery review. The change was proposed, implemented and tested by the AI agent and pushed from my account; the review summary is in the linked issue. Please review the diff as you would any other contribution.

Closes #68

The unknown-recipe page rendered only an EmptyState h3, so it had no
top-level heading (axe: page-has-heading-one). EmptyState now takes an
optional headingLevel (default 3, unchanged visuals) and the not-found
state uses level 1.

Closes #68
@oliveror oliveror requested a review from a team as a code owner November 16, 2026 12:57
@olestan olestan merged commit 80e0211 into dev Nov 16, 2026
2 checks passed
@olestan olestan deleted the fix/a11y-recipe-not-found-heading branch November 16, 2026 14:30
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants